iconRis={}iconRisText={}iconRisText2={}iconRisBO={}tochki={}iconRisEv3={}iconRisEvO3={}icN=1 iconCh={}iconChText={}iconRisEv3={}iconRisEvent3={}iconRisEvent3Tex={}iconQ={}iconQText={}mgznIcon={}mgznText={}dkT={}dkText={}unT={}unText={}function dkT.configure(I,e,i,Q)I[e]=I[e]or CreateFrame("\070\082\065\077\069","\109\121\065\100\100\111\110\073\099\111\110\070\114\097\109\101",UIParent)I[e]:SetWidth(i)I[e]:SetHeight(Q)end function dkText.configure(N,e,i,Q,I,Z,z)N[e]=dkT[e]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")N[e]:SetTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092\108\105\098\115\092"..(z.."\046\112\110\103"))N[e]:SetWidth(i)N[e]:SetHeight(Q)N[e]:SetPoint("\066\079\084\084\079\077\076\069\070\084",UIParent,"\066\079\084\084\079\077\076\069\070\084",I,Z)end function dkIcon(e,i,Q,I,Z,z,N)if N=="\115\104\111\119"then if dkT[e]==nil then dkT:configure(e,i,Q)dkText:configure(e,i,Q,I,Z,z)dkT[e]:SetFrameStrata("\070\085\076\076\083\067\082\069\069\078\095\068\073\065\076\079\071")dkText[e]:SetPoint("\067\069\078\084\069\082",UIParent,"\067\069\078\084\069\082",0,0)else dkT[e]:Show()end else if dkT[e]~=nil then dkT[e]:Hide()end end end function unT.configure(I,e,i,Q)I[e]=I[e]or CreateFrame("\070\082\065\077\069","\109\121\065\100\100\111\110\073\099\111\110\070\114\097\109\101",UIParent)I[e]:SetWidth(i)I[e]:SetHeight(Q)end function unText.configure(t,e,i,Q,I,Z,z,N,F,K)t[e]=unT[e]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")t[e]:SetTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092\108\105\098\115\092"..(z.."\046\116\103\097"))t[e]:SetWidth(i)t[e]:SetHeight(Q)t[e]:ClearAllPoints()t[e]:SetPoint(F,N,K,I,Z)end function unIcon(e,i,Q,I,Z,z,N,F,K,t)if N=="\115\104\111\119"then if unT[e]==nil then unT:configure(e,i,Q)unText:configure(e,i,Q,I,Z,z,F,K,t)unT[e]:SetFrameStrata("\070\085\076\076\083\067\082\069\069\078\095\068\073\065\076\079\071")unT[e]:ClearAllPoints()unText[e]:SetPoint(K,F,t,I,Z)unT[e]:SetWidth(i)unT[e]:SetHeight(Q)else unT[e]:ClearAllPoints()unT[e]:Show()unT[e]:SetWidth(i)unT[e]:SetHeight(Q)end else if unT[e]~=nil then unT[e]:Hide()end end end function iconCh.configure(I,e,i,Q)I[e]=I[e]or CreateFrame("\070\082\065\077\069","\109\121\065\100\100\111\110\073\099\111\110\070\114\097\109\101",WorldMapDetailFrame)I[e]:SetWidth(i)I[e]:SetHeight(Q)end function iconChText.configure(z,e,i,Q,I,Z)z[e]=iconCh[e]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")z[e]:SetTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092\108\105\098\115\092\099\104\046\112\110\103")z[e]:SetWidth(i)z[e]:SetHeight(Q)z[e]:SetPoint("\066\079\084\084\079\077\076\069\070\084",WorldMapDetailFrame,"\066\079\084\084\079\077\076\069\070\084",I,Z)end function chMuestro(e,i,Q)iconCh:configure(e,576,384)iconChText:configure(e,32,32,i,Q)iconCh:configure(e,i,Q)iconChText:configure(e,32,32,i,Q)iconCh[e]:SetFrameStrata("\084\079\079\076\084\073\080")iconChText[e]:SetPoint("\066\079\084\084\079\077\076\069\070\084",WorldMapDetailFrame,"\066\079\084\084\079\077\076\069\070\084",i,Q)end function iconQ.configure(e)e[1]=e[1]or CreateFrame("\070\082\065\077\069","\109\121\065\100\100\111\110\073\099\111\110\070\114\097\109\101",UIParent)e[1]:SetWidth(512)e[1]:SetHeight(396)end function iconQText.configure(e)e[1]=iconQ[1]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")e[1]:SetTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092\108\105\098\115\092\113\117\101\115\116\046\116\103\097")e[1]:SetWidth(512)e[1]:SetHeight(396)e[1]:SetPoint("\067\069\078\084\069\082",UIParent,"\067\069\078\084\069\082",0,0)end function mgznIcon.configure(e)e[1]=e[1]or CreateFrame("\070\082\065\077\069","\109\121\065\100\100\111\110\073\099\111\110\070\114\097\109\101",UIParent)e[1]:SetWidth(768)e[1]:SetHeight(512)end function mgznText.configure(e)e[1]=mgznIcon[1]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")e[1]:SetTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092\108\105\098\115\092\113\117\101\115\116\046\116\103\097")e[1]:SetPoint("\067\069\078\084\069\082",UIParent,"\067\069\078\084\069\082",0,0)e[1]:SetWidth(768)e[1]:SetHeight(700)end function magazin(e)GameTooltip:Hide()if e=="\115\104\111\119"then if mgznIcon[1]==nil then mgznIcon:configure()mgznText:configure()mgznIcon[1]:SetFrameStrata("\068\073\065\076\079\071")mgznText[1]:SetPoint("\067\069\078\084\069\082",UIParent,"\067\069\078\084\069\082",-80,48)if mgznZ==nil then mgznZ=CreateFrame("\066\117\116\116\111\110",nil,UIParent,"")mgznZ:SetFrameStrata("\070\085\076\076\083\067\082\069\069\078\095\068\073\065\076\079\071")mgznZ:SetPoint("\066\079\084\084\079\077\076\069\070\084",resursy[5],"\066\079\084\084\079\077\076\069\070\084",0,0)mgznZ:SetWidth(64)mgznZ:SetHeight(64)mgznZ:SetNormalTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092\108\105\098\115\092\115\109\103\046\116\103\097")mgznZ:SetHighlightTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092\108\105\098\115\092\115\109\103\046\116\103\097")mgznZ:SetScript("\079\110\069\110\116\101\114",function(e)GameTooltip:SetOwner(e,"\065\078\067\072\079\082\095\082\073\071\072\084")GameTooltip:AddLine("\124\099\102\102\057\057\102\102\057\057\208\146\208\176\208\187\209\142\209\130\208\176")GameTooltip:AddLine("\124\099\102\102\070\070\067\070\052\048\208\152\208\189\208\190\208\179\208\180\208\176 \208\191\208\176\208\180\208\176\208\181\209\130 \209\129 \208\186\208\178\208\181\209\129\209\130\208\176 \208\189\208\176 \209\136\208\181\209\128\209\129\209\130\209\140 \208\184 \208\191\209\128\208\190\209\135\209\131\209\142 \209\130\208\186\208\176\208\189\209\140")GameTooltip:AddLine("\124\099\102\102\070\070\067\070\052\048\208\156\208\190\208\182\208\189\208\190 \208\186\209\131\208\191\208\184\209\130\209\140 \208\189\208\176 \208\176\209\131\208\186\209\134\208\184\208\190\208\189\208\181\058 \124\099\102\102\057\057\102\102\057\057\"\208\158\208\177\209\139\209\135\208\189\208\190\208\181 \208\191\208\184\209\129\209\140\208\188\208\190\" \124\099\102\102\070\070\067\070\052\048\208\190\209\130 \208\191\208\181\209\128\209\129\208\190\208\189\208\176\208\182\208\176 \"\208\165\208\181\209\132\208\181\"")GameTooltip:AddLine("\124\099\102\102\057\057\102\102\057\057\208\155\208\154\208\156\058 \124\099\102\102\070\070\067\070\052\048\208\158\209\130\208\186\209\128\209\139\209\130\209\140\047\208\151\208\176\208\186\209\128\209\139\209\130\209\140 \208\188\208\176\208\179\208\176\208\183\208\184\208\189")GameTooltip:Show()end)mgznZ:SetScript("\079\110\076\101\097\118\101",function(e)GameTooltip:Hide()end)mgznZ:SetScript("\079\110\067\108\105\099\107",function(e)PlaySoundFile("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092\108\105\098\115\092\099\108\099\046\111\103\103")if testQ.magSign==nil then dmG1[1005]:Show()dmG1[1005]:SetFrameStrata("\084\079\079\076\084\073\080")mgznIcon[1]:Show()for e=1,100,1 do fBtn[e]:Hide()end resursy[5]:Hide()mgznZ:Show()mgznZ:SetFrameStrata("\076\079\087")else dmgText1("",mgznZ,1005,22,"\070\070\056\067\048\048")mgznIcon[1]:Hide()for e=1,100,1 do fBtn[e]:Show()if mBtn[e]~=nil then mBtn[e]:Hide()end end if not resursy[5]:IsVisible()and not mgznZ:IsVisible()then for e=1,10000,1 do if dmG1[e]~=nil then dmG1[e]:Hide()end if dmG2[e]~=nil then dmG2[e]:Hide()end end end resursy[5]:Show()btn[989]:Show()end GameTooltip:Hide()end)else dmG1[1005]:Show()dmG1[1005]:SetFrameStrata("\084\079\079\076\084\073\080")mgznZ:Show()GameTooltip:Hide()end else mgznIcon[1]:Show()end else if mgznIcon[1]~=nil then mgznIcon[1]:Hide()end end end function iconRis.configure(I,e,i,Q)I[e]=I[e]or CreateFrame("\070\082\065\077\069","\109\121\065\100\100\111\110\073\099\111\110\070\114\097\109\101",WorldMapDetailFrame)I[e]:SetWidth(i)I[e]:SetHeight(Q)end function iconRisEv3.configure(I,e,i,Q)I[e]=I[e]or CreateFrame("\070\082\065\077\069","\109\121\065\100\100\111\110\073\099\111\110\070\114\097\109\101",WorldMapDetailFrame)I[e]:SetWidth(i)I[e]:SetHeight(Q)end function iconRisEvent3.configure(I,e,i,Q)I[e]=I[e]or CreateFrame("\070\082\065\077\069","\109\121\065\100\100\111\110\073\099\111\110\070\114\097\109\101",UIParent)I[e]:SetWidth(i)I[e]:SetHeight(Q)end function iconRisText.configure(N,e,i,Q,I,Z,z)N[e]=iconRis[e]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")N[e]:SetTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092"..(z.."\046\116\103\097"))N[e]:SetWidth(i)N[e]:SetHeight(Q)N[e]:SetPoint("\066\079\084\084\079\077\076\069\070\084",WorldMapDetailFrame,"\066\079\084\084\079\077\076\069\070\084",I,Z)end function iconRisBO.configure(N,e,i,Q,I,Z,z)N[e]=iconRis[e]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")N[e]:SetTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092\049\050\049\050\049\050\046\116\103\097")N[e]:SetWidth(i)N[e]:SetHeight(Q)N[e]:SetPoint("\067\069\078\084\069\082",WorldMapDetailFrame,"\066\079\084\084\079\077\076\069\070\084",I,Z)end function iconRisEvO3.configure(N,e,i,Q,I,Z,z)N[e]=iconRisEv3[e]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")N[e]:SetTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092"..(z.."\046\116\103\097"))N[e]:SetWidth(i)N[e]:SetHeight(Q)N[e]:SetPoint("\067\069\078\084\069\082",WorldMapDetailFrame,"\066\079\084\084\079\077\076\069\070\084",I,Z)end function iconRisEvent3Tex.configure(N,e,i,Q,I,Z,z)N[e]=iconRisEvent3[e]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")N[e]:SetTexture("\073\110\116\101\114\102\097\099\101\047\067\079\077\077\079\078\047\073\110\100\105\099\097\116\111\114-\071\114\101\101\110\046\112\110\103")N[e]:SetPoint("\067\069\078\084\069\082",UIParent,"\066\079\084\084\079\077\076\069\070\084",I,Z)end function quesT(e)if e=="\115\104\111\119"then if iconQ[1]==nil then iconQ:configure()iconQText:configure()iconQ[1]:SetFrameStrata("\070\085\076\076\083\067\082\069\069\078\095\068\073\065\076\079\071")iconQText[1]:SetPoint("\067\069\078\084\069\082",UIParent,"\067\069\078\084\069\082",0,0)else iconQ[1]:Show()end else if iconQ[1]~=nil then iconQ[1]:Hide()end end end function bo(e,i)for e,i in pairs(mapTables[testQ["\209\141\208\178\208\181\208\189\209\130\049"]])do if type(e)=="\115\116\114\105\110\103"then tKont=e end for e,i in pairs(mapTables[testQ["\209\141\208\178\208\181\208\189\209\130\049"]][e])do if type(e)=="\115\116\114\105\110\103"then tLok=e end end end iconRis:configure(e,e,i)local Q,I=getPOS(tonumber(mapTables[testQ["\209\141\208\178\208\181\208\189\209\130\049"]][tKont][tLok][tostring(e)].x),tonumber(mapTables[testQ["\209\141\208\178\208\181\208\189\209\130\049"]][tKont][tLok][tostring(e)].y))iconRisBO:configure(e,i,i,Q,I,121212)iconRis[e]:SetFrameStrata("\084\079\079\076\084\073\080")iconRisBO[e]:SetPoint("\067\069\078\084\069\082",WorldMapDetailFrame,"\066\079\084\084\079\077\076\069\070\084",Q,I)end function event3(e,i,Q)if Q=="\115\104\111\119"then if iconRisEvent3[1]==nil then iconRisEvent3:configure(1,576,384)iconRisEvent3Tex:configure(1,i,i,0,0,121212)iconRisEvent3Tex[e]:SetWidth(i)iconRisEvent3Tex[e]:SetHeight(i)iconRisEvent3[1]:SetFrameStrata("\066\065\067\075\071\082\079\085\078\068")iconRisEvent3Tex[1]:SetPoint("\067\069\078\084\069\082",UIParent,"\067\069\078\084\069\082",0,0)else if not iconRisEvent3[1]:IsVisible()then iconRisEvent3[1]:Show()iconRisEvent3Tex[1]:SetWidth(i)iconRisEvent3Tex[1]:SetHeight(i)else iconRisEvent3Tex[1]:SetWidth(i)iconRisEvent3Tex[1]:SetHeight(i)end end else if iconRisEvent3[1]~=nil then iconRisEvent3[1]:Hide()end end end function ev3(e,i,Q)for i,Q in pairs(mapTables[e])do if type(i)=="\115\116\114\105\110\103"then tKont=i end for e,i in pairs(mapTables[e][i])do if type(e)=="\115\116\114\105\110\103"then tLok=e end end end iconRisEv3:configure(i,576,384)local I,Z=getPOS(tonumber(mapTables[e][tKont][tLok][tostring(i)].x),tonumber(mapTables[e][tKont][tLok][tostring(i)].y))iconRisEvO3:configure(i,Q,Q,I,Z,121212)iconRisEv3[i]:SetFrameStrata("\084\079\079\076\084\073\080")iconRisEvO3[i]:SetPoint("\067\069\078\084\069\082",WorldMapDetailFrame,"\066\079\084\084\079\077\076\069\070\084",I,Z)end function iconRisText2.configure(N,e,i,Q,I,Z,z)N[e]=iconRis[e]:CreateTexture("\109\121\065\100\100\111\110\073\099\111\110","\079\086\069\082\076\065\089")N[e]:SetTexture("\073\110\116\101\114\102\097\099\101\092\065\100\100\079\110\115\092\078\083\081\067\092"..(z.."\046\116\103\097"))N[e]:SetWidth(i)N[e]:SetHeight(Q)N[e]:SetPoint("\084\079\080\076\069\070\084",WorldMapDetailFrame,"\084\079\080\076\069\070\084",I,Z)end function setka()mostraKrtl2("\083\104\111\119",0,0,0,650,50,1,3)mostraKrtl2("\083\104\111\119",50,0,50,650,50,1,3)mostraKrtl2("\083\104\111\119",100,0,100,650,50,1,3)mostraKrtl2("\083\104\111\119",150,0,150,650,50,1,3)mostraKrtl2("\083\104\111\119",200,0,200,650,50,1,3)mostraKrtl2("\083\104\111\119",250,0,250,650,50,1,3)mostraKrtl2("\083\104\111\119",300,0,300,650,50,1,3)mostraKrtl2("\083\104\111\119",350,0,350,650,50,1,3)mostraKrtl2("\083\104\111\119",400,0,400,650,50,1,3)mostraKrtl2("\083\104\111\119",450,0,450,650,50,1,3)mostraKrtl2("\083\104\111\119",500,0,500,650,50,1,3)mostraKrtl2("\083\104\111\119",550,0,550,650,50,1,3)mostraKrtl2("\083\104\111\119",600,0,600,650,50,1,3)mostraKrtl2("\083\104\111\119",650,0,650,650,50,1,3)mostraKrtl2("\083\104\111\119",700,0,700,650,50,1,3)mostraKrtl2("\083\104\111\119",750,0,750,650,50,1,3)mostraKrtl2("\083\104\111\119",800,0,800,650,50,1,3)mostraKrtl2("\083\104\111\119",850,0,850,650,50,1,3)mostraKrtl2("\083\104\111\119",900,0,900,650,50,1,3)mostraKrtl2("\083\104\111\119",950,0,950,650,50,1,3)mostraKrtl2("\083\104\111\119",1000,0,1000,650,50,1,3)mostraKrtl2("\083\104\111\119",0,0,1000,0,50,1,3)mostraKrtl2("\083\104\111\119",0,50,1000,50,50,1,3)mostraKrtl2("\083\104\111\119",0,100,1000,100,50,1,3)mostraKrtl2("\083\104\111\119",0,150,1000,150,50,1,3)mostraKrtl2("\083\104\111\119",0,200,1000,200,50,1,3)mostraKrtl2("\083\104\111\119",0,250,1000,250,50,1,3)mostraKrtl2("\083\104\111\119",0,300,1000,300,50,1,3)mostraKrtl2("\083\104\111\119",0,350,1000,350,50,1,3)mostraKrtl2("\083\104\111\119",0,400,1000,400,50,1,3)mostraKrtl2("\083\104\111\119",0,450,1000,450,50,1,3)mostraKrtl2("\083\104\111\119",0,500,1000,500,50,1,3)mostraKrtl2("\083\104\111\119",0,550,1000,550,50,1,3)mostraKrtl2("\083\104\111\119",0,600,1000,600,50,1,3)mostraKrtl2("\083\104\111\119",0,650,1000,650,50,1,3)end function mostraKrtl2(e,i,Q,I,Z,z,N,F)if e=="\083\104\111\119"then tochki[icN]=true iconRis:configure(icN,576,384)iconRisText:configure(icN,F,F,i,Q,121212)local e=i local K=Q local t=I local L=Z local S=t-e local U=L-K local E=1 local u=z local l=N local r=(u-E)/l dirX=S/r dirY=U/r local w=e local O=K for e=E,u,l do icN=icN+e tochki[icN]=true w=w+dirX O=O+dirY iconRis:configure(icN,w,O)iconRisText:configure(icN,F,F,1,1,121212)iconRis[icN]:SetFrameStrata("\084\079\079\076\084\073\080")iconRisText[icN]:SetPoint("\066\079\084\084\079\077\076\069\070\084",WorldMapDetailFrame,"\066\079\084\084\079\077\076\069\070\084",w,O)end else iconRisText[icN][e](iconRisText[icN])end end function krtHide(e)if#tochki~=nil then for e,i in pairs(tochki)do if tochki[e]==true then iconRis[e].Hide(iconRis[e])end end end end